Constituent Parsing & Dependency Parsing 句法分析简介 | 您所在的位置:网站首页 › phrase structure rules名词解释 › Constituent Parsing & Dependency Parsing 句法分析简介 |
由于博主前面在学习句法分析的时候发现,相关的学习资料少之又少,费了不少功夫收集和整理。所以写几个笔记记录一下。 关于Parsing的一些基础知识:主要包括Parsing任务是干什么的,有什么作用,怎么做。 可以参考Christopher Manning的视频。以前在course上面有视频,现在得翻墙看 这是视频链接https://www.youtube.com/playlist?list=PL6397E4B26D00A269 话不多说,上面的资料很好,讲的很清楚。 1 Two views of linguistic structure。 两种句法结构的异同,依存句法和成分句法是两种不同的句法, Phrase structure organizes words into nested constituents. Phrase structure: A constituency parse tree breaks a text into sub-phrases. Non-terminals in the tree are types of phrases, the terminals are the words in the sentence, and the edges are unlabeled. interested in sub-phrases within the sentence Dependency structure shows which words depend on (modify or are arguments of) which other words. Dependency structure: A dependency parse connects words according to their relationships. Each vertex in the tree represents a word, child nodes are words that are dependent on the parent, and edges are labeled by the relationship. interested in the dependency relationships between words 两种语法结构能够揭示句子中不同的信息,所以当你在其他任务中,需要用到句子中的短语结构就用constituent ,而需要用到词与词之间的依赖关系就用dependency。 顺带提一个小常识,依存句法树能够根据成分句法树转换而来,但成分句法树不能通过依存树转化来。转换的规则是head-finding rules from Zhang and Clark 2008 另外一个对于初学者比较头疼的问题就是什么是head word。 博主刚开始以为有明确的定义,但没找到,后面才知道,head word在不同的Parsing方案中不一样,有的(比如Stanford的那一套规则)可能在这一句话中把这个词定为head word,而有的却是另外一个词。当然这些不同只是在一小部分比较特殊的语句中。 什么是head word??? 在成分句法分析中。 在依存句法分析中。 而中心词的作用可以理解成在parse的过程中的一个重要的特征。 |
CopyRight 2018-2019 实验室设备网 版权所有 |